<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
      <!-- 1.1 通过location对象实现A跳转到B,B到C。 -->
      <button type="button" onclick="bb()">跳转到页面三</button>
      <button type="button" onclick="cc()" >后退</button>
      <button type="button" onclick="dd()" >前进</button>
      <button type="button" onclick="ee()">刷新</button>
</body>
   <script>
      function  bb(){
        location.href="./index2.html"
       }
       function cc(){
        history.go(-1)
       }
       function dd(){
        history.go(1)
       }
       function ee(){
           location.reload()
       }
   </script>
</html>